Skip to content
This repository was archived by the owner on Mar 8, 2019. It is now read-only.

fix check_attribute parser rule to only set attribute if already set#411

Open
garrytan wants to merge 1 commit into
tiff:masterfrom
posthaven:master
Open

fix check_attribute parser rule to only set attribute if already set#411
garrytan wants to merge 1 commit into
tiff:masterfrom
posthaven:master

Conversation

@garrytan
Copy link
Copy Markdown

Previously, if you set a check_attribute for a given attribute, it would set that attribute even if it wasn't already set. This can clutter up the attributes of the markup quite a bit if you are trying to add custom attributes that will be validated, but you don't want them to show up on every one of those types of tags.

This fix skips validation for check_attribute if the attribute itself is not set at all.

@jspaper
Copy link
Copy Markdown

jspaper commented Jul 31, 2013

+1

Comment thread src/dom/parse.js
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This extra space should be removed.

@nickhoffman
Copy link
Copy Markdown

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants